package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统角色分配菜单请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-16
 */
@Data
@Schema(title = "SysRoleAssignMenuRequest", description = "系统角色分配菜单请求体")
public class SysRoleAssignMenuRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 4106208405524971157L;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @Schema(title = "roleId", description = "角色ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long roleId;

    /**
     * 菜单ID集合
     */
    @NotEmpty(message = "菜单ID集合不能为空")
    @Schema(title = "menuIds", description = "菜单ID集合", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> menuIds;
}
